WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
capture_pose.h
Go to the documentation of this file.
1// WOLF - Copyright (C) 2020-2026
2// Institut de Robòtica i Informàtica Industrial, CSIC-UPC.
3// Authors: Joan Solà Ortega (jsola@iri.upc.edu) and
4// Joan Vallvé Navarro (jvallve@iri.upc.edu)
5// All rights reserved.
6//
7// This file is part of WOLF: http://www.iri.upc.edu/wolf
8// WOLF is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License version 3
10// as published by the Free Software Foundation.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19#pragma once
20
21// Wolf includes
26
27// std includes
28//
29
30namespace wolf
31{
33
37{
38 protected:
39 Eigen::VectorXd data_;
40 Eigen::MatrixXd data_covariance_;
41
42 public:
45 CapturePose(const TimeStamp& _ts,
46 SensorBasePtr _sensor_ptr,
47 const Eigen::VectorXd& _data,
48 const Eigen::MatrixXd& _data_covariance);
49
50 ~CapturePose() override;
51
54 virtual void emplaceFeatureAndFactor(const ProcessorBasePtr& _processor = nullptr,
55 bool _apply_loss_function = false);
56
59 Eigen::VectorXd getData() const
60 {
61 return data_;
62 }
63
66 Eigen::MatrixXd getDataCovariance() const
67 {
68 return data_covariance_;
69 }
70
73 void setData(const Eigen::VectorXd& _data);
74
77 void setDataCovariance(const Eigen::MatrixXd& _data_covariance);
78};
79
80} // namespace wolf
Base class of captures: a sensor measurement taken at a time stamp, linked to a frame,...
Definition: capture_base.h:41
Capture of a measurement of the frame pose (2d or 3d), with its covariance.
Definition: capture_pose.h:37
Eigen::VectorXd data_
Raw data.
Definition: capture_pose.h:39
virtual void emplaceFeatureAndFactor(const ProcessorBasePtr &_processor=nullptr, bool _apply_loss_function=false)
Emplaces a feature with the capture data and a FactorPose2d or FactorPose3d on the frame pose.
Definition: capture_pose.cpp:54
Eigen::VectorXd getData() const
Returns the pose data.
Definition: capture_pose.h:59
void setDataCovariance(const Eigen::MatrixXd &_data_covariance)
Sets the pose data covariance.
Definition: capture_pose.cpp:46
CapturePose(const TimeStamp &_ts, SensorBasePtr _sensor_ptr, const Eigen::VectorXd &_data, const Eigen::MatrixXd &_data_covariance)
Constructor from the pose data (size 3 in 2d, 7 in 3d) and its covariance (3x3 or 6x6)
Definition: capture_pose.cpp:23
Eigen::MatrixXd getDataCovariance() const
Returns the pose data covariance.
Definition: capture_pose.h:66
Eigen::MatrixXd data_covariance_
Noise of the capture.
Definition: capture_pose.h:40
~CapturePose() override
Definition: capture_pose.cpp:34
void setData(const Eigen::VectorXd &_data)
Sets the pose data.
Definition: capture_pose.cpp:39
TimeStamp implements basic functionalities for time stamps.
Definition: time_stamp.h:39
Definition: capture_base.h:23
WOLF_PTR_TYPEDEFS(CaptureLandmarksExternal)